package com.zelix;

import java.awt.*;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.io.File;
import java.util.ArrayList;
import java.util.Collections;
import javax.swing.*;
import javax.swing.text.JTextComponent;

public class m4 extends d4
    implements PropertyChangeListener, pz
{

    private boolean b;
    private v1 c;
    private t1 d;
    private s1 e;
    private w3 f;
    private r4 g;
    private boolean h;
    private static File i;
    private static String j = "W\"\032BQv+\t\007e9\t\f\017r";
    private w1 k;
    private JButton l;
    private JButton m;
    int n;
    static String o = "w&\033 bm3\002\fdN.\t\026\177$2\035$xu#\b\020Ul3\031\ry7#\b\004vl+\0315~}3\005Iy|0+\r{}\"\037 bm3\002\f9}\"\013\003bu3:\013sm/FP'\"#\004\020rz3\002\020nZ(\000\000x[(\025Lcv7PW,}.\037\007tm(\037\033Tv*\017\rUv?C\016r\1773PW,}.\037\007tm(\037\033Tv*\017\rUv?C\020~~/\031_tv)\031\003~w\"\037Lep \005\026:w&\033 bm3\002\fdN.\t\026\177\"2\035$xu#\b\020Ul3\031\ry73\002\022*,|\030\022Qv+\t\007e[2\031\026xwi\037\013pq3P\frn\001\002\016s|5/\027cm(\003L{|!\031O\"\")\b\025Qv+\t\007e[2\031\026xwi\031\rg$rV\frn\001\002\016s|5/\027cm(\003Lep \005\026*z(\003\026vp)\b\0209k.\n\nc4rV\004~u\"!\013dmi\001\007qmzXYqp+\b.~j3C\020~~/\031_tv)\031\003~w\"\037Lep \005\026:,|\013\013{|\013\004\021c73\002\022*}.\037\007tm(\037\033Tv*\017\rUv?C\000xm3\002\017<(wV\004~u\"!\013dmi\017\rcm(\000_tv)\031\003~w\"\037Luv3\031\rz4+\002\025rk\004\002\017gv)\b\026dQ\"\004\005\177m|\013\013{|4)\013di+\f\0339m(\035_qp+\b.~j3C\000xm3\002\017<(wV\004~u\"\036&~j7\001\003n75\004\005\177mz\016\rym&\004\frki\037\013pq3@W,\177.\001\026rk\004\002\017uv\005\002\0329u\"\013\026*,|\013\013{m\"\037!xt%\002 xai\031\rg$!\004\016rj\003\004\021gu&\024Luv3\031\rz2rV\004~u3\b\020Tv*\017\rUv?C\020~~/\031_tv)\031\003~w\"\037Lep \005\026:,|\001\r`|5.\rzi(\003\007cj\017\b\013pq3P\004~u\"\036&~j7\001\003n7#\b\004vl+\031*rp \005\026<\177.\001\026rk\004\002\017uv\005\002\0329}\"\013\003bu3%\007~~/\031I%)|";
    static String p = "\177.\001\007d].\036\022{x>C\016r\1773PW";
    static String q = z(z("\177.\001\007d].\036\022{x>!\000{7+\b\004c$rV\004~u\"\036&~j7\001\003nU%\001Lt|)\031\007e@z\013\013{|4)\013di+\f\0339z\"\003\026rk\036V\004~u\"\036&~j7\001\003n7+\b\004c$!\004\016rj\003\004\021gu&\024.uui\037\013pq3FS"));
    static String r[];
    private static String z[];

    public m4(File file, boolean flag, int i1, qz aqz[], int j1, boolean flag1)
    {
        n = -1;
        if(file == null || !file.isDirectory())
            file = i;
        b = flag;
        h = flag1;
        a(file, flag, i1, aqz, j1, flag1);
    }

    static t1 a(m4 m4_1)
    {
        return m4_1.d;
    }

    static s1 b(m4 m4_1)
    {
        return m4_1.e;
    }

    static w1 d(m4 m4_1)
    {
        return m4_1.k;
    }

    static JButton e(m4 m4_1)
    {
        return m4_1.l;
    }

    static JButton f(m4 m4_1)
    {
        return m4_1.m;
    }

    protected void a()
    {
        File afile[] = g.b();
        if(afile != null && afile.length > 0)
            n = 1;
        k.setVisible(false);
        k.dispose();
    }

    protected void b()
    {
        n = 0;
        k.setVisible(false);
        k.dispose();
    }

    public File c()
    {
        return f.d();
    }

    public String d()
    {
        return c().getAbsolutePath();
    }

    public File e()
    {
        return g.a();
    }

    public File[] f()
    {
        return g.b();
    }

    public File[] a(File file)
    {
        ArrayList arraylist = new ArrayList();
        arraylist.add(file);
        a(file, arraylist);
        int i1 = arraylist.size();
        Collections.sort(arraylist, ic.a());
        return (File[])arraylist.toArray(new File[arraylist.size()]);
    }

    File[] b(File file)
    {
        File afile[] = null;
        if(file.isDirectory() && file.exists())
            afile = file.listFiles(new lc());
        return afile;
    }

    private void a(File file, ArrayList arraylist)
    {
        File afile[];
        int i1;
        int j1;
        j1 = qz.a;
        if(!file.isDirectory())
            break MISSING_BLOCK_LABEL_63;
        afile = b(file);
        if(afile == null)
            break MISSING_BLOCK_LABEL_69;
        i1 = 0;
        if(j1 == 0) goto _L2; else goto _L1
_L1:
        arraylist.add(afile[i1]);
        a(afile[i1], arraylist);
        i1++;
_L2:
        if(i1 < afile.length) goto _L1; else goto _L3
_L3:
        if(j1 == 0)
            break MISSING_BLOCK_LABEL_69;
        arraylist.add(file);
    }

    void g()
    {
        String s = JOptionPane.showInputDialog(this, j, j, 3);
        if(s != null && s.trim().length() > 0)
        {
            boolean flag = f.b(s);
            if(!flag)
                JOptionPane.showMessageDialog(this, "'" + s + z[21], z[20], 0);
        }
    }

    public void propertyChange(PropertyChangeEvent propertychangeevent)
    {
label0:
        {
            if(propertychangeevent.getPropertyName().equals(z[18]))
            {
                firePropertyChange(z[18], propertychangeevent.getOldValue(), propertychangeevent.getNewValue());
                if(qz.a == 0)
                    break label0;
            }
            if(propertychangeevent.getPropertyName().equals(z[19]))
                firePropertyChange(z[19], propertychangeevent.getOldValue(), propertychangeevent.getNewValue());
        }
    }

    public void c(File file)
    {
        if(file != null)
        {
            g.a(file);
            g.selectAll();
            zz.b(g);
        }
    }

    public void a(File file, boolean flag)
    {
        f.a(file, flag);
    }

    void a(File file, boolean flag, int i1, qz aqz[], int j1, boolean flag1)
    {
        j0 j0_1;
        String s;
label0:
        {
            int k1 = qz.a;
            j0_1 = new j0(this);
            setLayout(j0_1);
            f = new w3(file, flag, i1, aqz[j1]);
            c = new v1(file);
            d = new t1();
            e = new s1();
            add(c, z[2]);
            add(d, z[5]);
            add(e, z[4]);
            add(new q4(f), z[6]);
            s = o;
            if(flag1)
            {
                JLabel jlabel = new JLabel(z[3]);
                add(jlabel, z[1]);
                s = s + q;
                if(k1 == 0)
                    break label0;
                int l1 = gs.b;
                gs.b = ++l1;
            }
            s = s + p;
        }
        g = new r4(file, flag1, i1, flag);
        add(g, z[0]);
        u1 u1_1 = new u1(j1, aqz);
        add(u1_1, z[7]);
        g.setFont(u1_1.getFont());
        f.addPropertyChangeListener(c);
        f.addPropertyChangeListener(g);
        c.addPropertyChangeListener(f);
        g.addPropertyChangeListener(f);
        f.addPropertyChangeListener(g);
        g.addPropertyChangeListener(this);
        f.addPropertyChangeListener(this);
        u1_1.addPropertyChangeListener(f);
        mz mz1 = new mz(this);
        q q1 = new q(this);
        d.addActionListener(mz1);
        d.addKeyListener(q1);
        e.addActionListener(mz1);
        e.addKeyListener(q1);
        j0_1.e(s);
    }

    public int a(JFrame jframe, String s, String s2, String s3, String s4, String s5, String s6, 
            String s7)
    {
        int i1;
        i1 = qz.a;
        k = new c2(jframe, s, true);
        Container container = k.getContentPane();
        j0 j0_1 = new j0(container);
        container.setLayout(j0_1);
        container.add(this, z[23]);
        l = new JButton(s2);
        l.setToolTipText(s3);
        container.add(l, z[24]);
        m = new JButton(s4);
        m.setToolTipText(s5);
        container.add(m, z[22]);
        j0_1.a(r);
        r r1 = new r(this);
        l.addActionListener(r1);
        m.addActionListener(r1);
        l.addKeyListener(r1);
        m.addKeyListener(r1);
        f.addPropertyChangeListener(new nz(this));
        g.addPropertyChangeListener(new oz(this));
        c.setToolTipText(s6);
        g.setToolTipText(s7);
        zz.a(k);
        k.a();
        n;
        if(gs.b != 0)
            qz.a = ++i1;
        return;
    }

    public int a(JFrame jframe, String s)
    {
        return a(jframe, s, z[10], b ? z[12] : z[13], z[9], z[9], z[8], z[11]);
    }

    public int b(JFrame jframe, String s)
    {
        return a(jframe, s, z[16], z[15], z[9], z[14], z[17], null);
    }

    void h()
    {
        f.f();
    }

    private static char[] z(String str) {
        char ac[] = str.toCharArray();
        int clen = ac.length;
        if (clen >= 2)
            return ac;
        ac[0] ^= 0x17;
        return ac;
    }

    private static String z(char[] chs) {
        for (int i = 0; i < chs.length; i++) {
            byte key = 0;
            switch (i % 5) {
                case 0:
                    key = 0x19;
                    break;
                case 1:
                    key = 71;
                    break;
                case 2:
                    key = 109;
                    break;
                case 3:
                    key = 98;
                    break;
                default:
                    key = 23;
                    break;
            }
            chs[i] ^= key;
        }
        return new String(chs).intern();
    }

    static 
    {
        String as[] = new String[26];
        as[0] = z(z("\177.\001\007d].\036\022{x>"));
        as[1] = z(z("\177.\001\007d].\036\022{x>!\000{"));
        as[2] = z(z("}.\037\007tm(\037\033Tv*\017\rUv?"));
        as[3] = z(z("_.\001\0077w&\000\007-"));
        as[4] = z(z("w\"\032$xu#\b\020Ul3\031\ry"));
        as[5] = z(z("l7+\r{}\"\037 bm3\002\f"));
        as[6] = z(z("\177.\001\007[p4\031"));
        as[7] = z(z("\177.\001\026rk\004\002\017uv\005\002\032"));
        as[8] = z(z("U.\036\0267\177.\001\007d9&\031Bcq.\036B{|1\b\016"));
        as[9] = z(z("Z&\003\001ru"));
        as[10] = z(z("V\f"));
        as[11] = z(z("J\"\001\007tm\"\tBqp+\b\021"));
        as[12] = z(z("V7\b\f7j\"\001\007tm\"\tBqp+\b\021"));
        as[13] = z(z("V7\b\f7j\"\001\007tm\"\tBqp+\b"));
        as[14] = z(z("Z&\003\001rug\036\003a|"));
        as[15] = z(z("J&\033\0077\177.\001\0077p)M\001bk5\b\fc9!\002\016s|5"));
        as[16] = z(z("J&\033\007"));
        as[17] = z(z("J&\033\0077p)"));
        as[18] = z(z("j\"\001\007tm.\002\fTq&\003\005r}"));
        as[19] = z(z("\177.\003\003{J\"\001\007tm.\002\f"));
        as[20] = z(z("\\5\037\re"));
        as[21] = z(z(">g\016\rbu#M\fxmg\017\0077z5\b\003c|#"));
        as[22] = z(z("z&\003\001ru\005\031\f"));
        as[23] = z(z("\177.\001\007D|+\b\001cv5"));
        as[24] = z(z("x7\035\020xo\"/\026y"));
        as[25] = z(z("l4\b\0209}.\037"));
        z = as;
        i = new File(System.getProperty(z[25]));
        String as1[] = new String[13];
        as1[0] = z(z("u&\024\rbmi\000\013yN.\t\026\177$%\031\f@p#\031\n=*l_R"));
        as1[1] = z(z("{3\0035~}3\005_zx?E\003gi5\002\024r[3\003Ls|!\f\027{m\020\004\006cqk\016\003yz\"\001 cwi\t\007qx2\001\026@p#\031\n>"));
        as1[2] = z(z("{3\003*rp \005\026*t&\025Jvi7\037\ra|\005\031\f9}\"\013\003bu3%\007~~/\031Ntx)\016\007{[3\003Ls|!\f\027{m\017\b\013pq3D"));
        as1[3] = z(z("\177.\001\007D|+\b\001cv5C\026xizX"));
        as1[4] = z(z("\177.\001\007D|+\b\001cv5C\016r\1773PW"));
        as1[5] = z(z("\177.\001\007D|+\b\001cv5C\020~~/\031_tv)\031\003~w\"\037Lep \005\026:,"));
        as1[6] = z(z("\177.\001\007D|+\b\001cv5C\000xm3\002\017*z(\003\026vp)\b\0209{(\031\026xtj\f\022gk(\033\007Um)C\006r\177&\030\016cQ\"\004\005\177mj\\R"));
        as1[7] = z(z("x7\035\020xo\"/\026y7%\002\026cv*P\001xw3\f\013y|5C\000xm3\002\017:,"));
        as1[8] = z(z("x7\035\020xo\"/\026y7$\b\fc|55_tv)\031\003~w\"\037L`p#\031\n=+rBS')"));
        as1[9] = z(z("x7\035\020xo\"/\026y70\004\006cqz\017\026yN.\t\026\177"));
        as1[10] = z(z("z&\003\001ru\005\031\f9{(\031\026xtz\f\022gk(\033\007Um)C\000xm3\002\017"));
        as1[11] = z(z("z&\003\001ru\005\031\f9z\"\003\026rk\037P\001xw3\f\013y|5C\025~}3\005H ,h\\R'"));
        as1[12] = z(z("z&\003\001ru\005\031\f9n.\t\026\177$%\031\f@p#\031\n"));
        r = as1;
    }
}